/*
 * COPYRIGHT:	2010 Christopher Smith, licenced under the GNU GPL v2; see COPYING in the top level directory
 * PROJECT:		sdedit
 * FILE:		rtlheap.cpp
 * PURPOSE:		rtl heap (via Win32)
 *				to be compiled independently with the main module
 *				for use in release builds
 */

#include <windows.h>

void *__cdecl operator new(size_t sz)
{
	return HeapAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, sz);
}

void __cdecl operator delete(void *p)
{
	HeapFree(GetProcessHeap(), 0, p);
}

void *__cdecl operator new[](size_t sz)
{
	return operator new(sz);
}

void __cdecl operator delete[](void *p)
{
	operator delete(p);
}
